package com.zhmsky.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zhmsky.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * @author zhmsky
 * @date 2021/12/5 11:01
 */
@Mapper
public interface UserMapper extends BaseMapper<User> {

    @Select("select * from user where binary username=#{username} ")
    User getUserByName(String username);
}
